package com.ruoyi.business.service;

import com.alibaba.fastjson2.JSONObject;
import com.ruoyi.business.dto.WxLoginDto;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author liumaotong
 * @Description 微信登录Service
 * @Date 2024/1/7
 */
public interface IMobileWechatService {

    /**
     * @Author liumaotong
     * @Description 小程序accessToken
     * @Date 2024/1/19
     * @Param [appId]
     * @return java.lang.String
     */
    String getAccessToken() throws Exception;

    /**
     * @Author liumaotong
     * @Description 微信登录
     * @Date 2024/1/7
     * @Param [loginDto]
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    Map<String,Object> wxLogin(WxLoginDto loginDto) throws Exception;


    /**
     * @Author liumaotong
     * @Description 获取小程序登录用户手机号
     * @Date 2024/1/18
     * @Param [wechatInfo]
     * @return java.util.Map<java.lang.String,java.lang.Object>
     */
    JSONObject getPhoneNumber(WxLoginDto loginDto) throws Exception;
}
